package com.gis3c.sys.service.impl;

import java.util.List;
import javax.annotation.Resource;

import com.gis3c.sys.entry.po.Permission;
import org.springframework.stereotype.Service;
import com.gis3c.sys.dao.PermissionDao;
import com.gis3c.sys.service.PermissionService;

@Service
public class PermissionServiceImpl implements PermissionService {
	@Resource private PermissionDao permissionDao;
	
	@Override
	public Permission createPermission(Permission permission) {
		return permissionDao.createPermission(permission);
	}

	@Override
	public void deletePermission(String permissionId) {
		permissionDao.deletePermission(permissionId);
	}

	@Override
	public List<Permission> findResources(String username) {
		return permissionDao.findResources(username);
	}
}
